package org.alanlau.dynamic.cglib;

/**
 * CGLIG 测试类
 * @author alan
 * @version 1.0
 * @date 2020/1/12 10:26
 */
public class CglibDynamicTest {
    public static void main(String[] args) {
        CglibDynamicProxy proxy = new CglibDynamicProxy();
        TestDao testDao = new TestDao();
        TestDao testDaoAdvice = (TestDao)proxy.createProxy(testDao);
        testDaoAdvice.save();
        System.out.println("===============");
        testDaoAdvice.modify();
        System.out.println("===============");
        testDaoAdvice.delete();
    }
}
